package com.example.Example_01;

public class Duck {
	IFlyAble flyAble;
	IQuackAble quackAble;
	
	public void performFly() {
		flyAble.fly();
	}
	public void performQuack() {
		quackAble.qucak();
	}
	
	public void setFlyAble(IFlyAble flyAble) {
		this.flyAble = flyAble;
	}
	public void setQuackAble(IQuackAble quackAble) {
		this.quackAble = quackAble;
	}
}
